﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MysqlCoreDemo
{
    /// <summary>
    /// 用户表
    /// </summary>
    [Table(nameof(User))]
    public class User
    {
        /// <summary>
        ///   id
        /// </summary>
        [Key]                                      //主键
        public int Id { get; set; }
        /// <summary>
        ///     姓名
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        ///        年龄
        /// </summary>
        public int age { get; set; }
        public string Content { get; set; }

    }
}
